/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hermes.controle;

/**
 *
 * @author Marcelo
 */
import java.util.ArrayList;

public class Familia extends ClasseNegocio{
    private String familia;
    
    

     @Override
    public void setTodosAtributos(ArrayList<Object> arrayAtributos){
         this.setIdObjeto((Integer) arrayAtributos.get(0));
         this.setFamilia((String) arrayAtributos.get(1));
     }

    /**
     * @return the familia
     */
    public String getFamilia() {
        return familia;
    }

    /**
     * @param familia the familia to set
     */
    public void setFamilia(String familia) {
        this.familia = familia;
    }

    @Override
    public void setTodosAtributosParaGravar(ArrayList<Object> arrayAtributos) {
        this.setFamilia("\'"+(String) arrayAtributos.get(1)+"\'");
    }


}
